const mongoose = require("mongoose")
mongoose.connect("mongodb://127.0.0.1:27017/mynews").then(() => {
    console.log("连接成功");
}).catch(err => {
    console.log("链接失败", err);
})

module.exports = mongoose;